﻿<div class="departmentInfoList">
    {{? it.type === 'edit'}}
    <div class="singleInfo departmentName">
        <span class="infoLabel">{{= _l('部门名称')}}</span>
        <span class="info Relative">
            <input type="text" value="{{= it.departmentName || '' }}" class="deptName TxtBottom" />
        </span>
    </div>
    <div class="singleInfo parentDepartment">
        <span class="infoLabel">{{= _l('上级部门')}}</span>
        {{? it.parentDepartment }}
        <span class="info Hand">
            <span class="overflow_ellipsis deptName" data-departmentid="{{! it.parentDepartment.departmentId }}"
                >{{! it.parentDepartment.departmentName }}</span
            >
            <span class="icon-arrow-down-border arrowIcon Font16 changeParent"></span>
        </span>
        {{??}}
        <span class="info Hand">
            <span class="overflow_ellipsis deptName" data-departmentid="">{{! it.companyName }}</span>
            <span class="icon-arrow-down-border arrowIcon Font16 changeParent"></span>
        </span>
        {{?}}
    </div>
    {{?? it.type === 'create' }}
    <div class="singleInfo departmentName">
        <div class="singleInfo departmentName">
            <span class="infoLabel">{{= _l('部门名称')}}</span>
            <span class="info Relative">
                <input type="text" class="deptName TxtBottom" maxlength="32" />
            </span>
        </div>
        {{? !it.isLevel0}}
        <div class="singleInfo parentDepartment" style="display: none">
            <span class="infoLabel">{{= _l('上级部门')}}</span>
            <span class="info Hand">
                <span class="overflow_ellipsis deptName" data-departmentid="{{! it.departmentId }}"
                    >{{! it.departmentName }}</span
                >
                <span class="icon-arrow-down-border arrowIcon Font16 changeParent"></span>
            </span>
        </div>
        {{?}}
    </div>
    {{?}} {{? it.type === 'edit' }}
    <div class="singleInfo departmentCharger">
        <span class="infoLabel">{{= _l('部门负责人')}}</span>
        <div class="mTop10">
            <span class="chargerUserBox"> {{~it.chargeUsers:account}} {{# def.buildChargeUser:account }} {{~}} </span>
            <span class="TxtCenter Gray_75 ThemeHoverBorderColor3 ThemeHoverColor3 pointer chargerUser">
                <i class="icon-plus"></i>
            </span>
        </div>
    </div>
    {{?}}
</div>

#include.chargeUserTpl
